<%= content_for :css do %>
<%= stylesheet_link_tag '/assets/presentation' %>
<% end %>

<!-- orientation info -->
<% if @guided_tour %>
	<div id="orinfo">
		<%= link_to 'Home', root_path %> >
		<%= link_to 'Structure Tour', structures_best_path %> >
		<%= @structure.name %> Booking Table
	</div>
<% else %>
	<div id="orinfo">
		<%= link_to 'Home', root_path %> >
		<%= link_to 'All Structures', structures_all_path %> >
		<%= @structure.name %> Booking Table
	</div>
<% end %>

<h1> <%= @structure.name %> Booking Table </h1>

<button id ="introduction" class="structural">
	<%= link_to 'Presentation', structure_path(@structure, guided_tour: @guided_tour) %>
</button>
<button id="booking" class="structural" disabled="disabled">
	Booking Table
</button>

<table id="bookingTable">
	<tr>
		<th>September</th>
		<th>October</th>
		<th>November</th>
		<th>December</th>
		<th>Jenuary</th>
		<th>February</th>
		<th>March</th>
		<th>April</th>
		<th>May</th>
		<th>June</th>
		<th>July</th>
		<th>August</th>
	</tr>

	<% 28.times do |i|%>
	<tr>
		<% 12.times do %>
		<td><%= i+1 %></td>
		<% end %>
	</tr>
	<% end %>

	<% 2.times do |i|%>
	<tr>
		<% 5.times do %>
		<td><%= i+29 %></td>
		<% end %>
		<td></td>
		<% 6.times do %>
		<td><%= i+29 %></td>
		<% end %>
	</tr>
	<% end %>

	<tr>
		<td></td>
		<td>31</td>
		<td></td>
		<td>31</td>
		<td>31</td>
		<td></td>
		<td>31</td>
		<td></td>
		<td>31</td>
		<td></td>
		<td>31</td>
		<td>31</td>
	</tr>

</table>
<% if @structure.events.size() > 0 %>
	<button id="relatedEvents">
		<%= link_to 'Related Events', structures_related_events_url(@structure, guided_tour: @guided_tour) %>
	</button>
<% else %>
	<button id="relatedEvents" disabled="disabled">
	Related Events
	</button>
<% end %>
